package org.example;

public class Main {
    public static void main(String[] args) {

        Subject acc;
        acc = new ConcreteSubject("对局.No1");

        //�����ĸ��۲��߶���
        Observer player1,player2,player3,player4;

        player1 = new Player("玩家1");
        acc.addPlayers(player1);

        player2 = new Player("玩家2");
        acc.addPlayers(player2);

        player3 = new Player("玩家3");
        acc.addPlayers(player3);

        player4 = new Player("玩家4");
        acc.addPlayers(player4);
        System.out.println("--------------------------");
        player1.beAttacked(acc);
    }
}